package com.yzh.lambda;

import java.util.*;

/**
 * @author 于振晗
 * @title: CollectionsTest
 * @description: TODO 集合lambda
 * @date 2020年09月04日
 * @path com.yzh.lambda
 */
public class CollectionsTest {
    public static void main(String[] args) {

        List<Integer> list = new ArrayList<>();
        Collections.addAll(list,1,2,4,5,6,3,8,7,9,8,5,6);


        Map<Integer,String> mp = new HashMap();
        mp.put(1,"123");
        mp.put(2,"3456");
        mp.put(3,"567");
        mp.forEach((k,v)-> System.out.println(k+"   "+v));
    }
}
